package cn.zysuyuan.item.service;

import cn.zysuyuan.common.entity.PageResult;
import cn.zysuyuan.item.entity.ProductBase;
import cn.zysuyuan.item.entity.ProductBaseImg;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2019-11-22 20:30
 */
public interface ProductBaseService {
    PageResult<ProductBase> selectList(Map<String, Object> map);

    PageResult<ProductBaseImg> selectListImg(String id);

    int insert(ProductBase productBase);

    int update(ProductBase productBase);

    int delete(String id);

    List<String> selectAllMedicinal();

    Map<String,Object> saveImg(MultipartFile[] files, HttpServletRequest request, Map<String,Object> map);

    List<ProductBase> selectAllProductName();

}
